home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
ptv1n1.arc
/
PCTV1N1.ARC
/
TABPROG.CPP
< prev
next >
Wrap
Text File
|
1990-06-08
|
322b
|
16 lines
/* Listing 5. Main program for C++ tab expansion */
#include "tabexp.hpp"
main()
{
int c;
/* declare a tab expander using stdin and 8-spaces */
tabexp te(stdin, 8);
do { /* loop until no more characters in input */
c = te.get();
if (c == -1) break; else putc(c, stdout);
} while(1);
}